package com.ls.fw.web.core.support.validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
  
public class IdcardValidator implements ConstraintValidator<Idcard, Object> {  

    @Override  
    public void initialize(Idcard annotation) {  
    }  
  
    @Override  
    public boolean isValid(Object str, ConstraintValidatorContext constraintValidatorContext) {  
    	return IdcardValidatorUtil.isValidatedAllIdcard(String.valueOf(str));  
    }  
  
}  